<div class="panel dux-box">
    <div class="table-tools clearfix ">
        <div class="float-left">
            <form method="post" action="{url()}">
                <div class="form-inline">
                    <div class="form-group">
                        <div class="field">
                            <input type="text" class="input" id="keyword" name="keyword" size="20" value="{$keyword}" placeholder="用户名/手机">
                        </div>
                    </div>
                    <div class="form-button">
                        <button class="button" type="submit">搜索</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="table-responsive">
        <table id="table" class="table table-hover ">
            <tbody>
                <tr>
                    <th width="80">编号</th>
                    <th width="*">登录账号</th>
                    <th width="*">手机号码</th>
                    <th width="*">电子邮箱</th>
                    <th width="*">注册日期</th>
                    <th width="*">状态</th>
                    <th width="150">操作</th>
                </tr>
                <!-- loop{$list as $vo} -->
                <tr>
                    <td>{$vo.uid}</td>
                    <td>{$vo.account}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.email}</td>
                    <td>{$vo.regtime}</td>
                    <td>
                       <!-- if{$vo['status']} -->
                       <span class="tag bg-green">可以下载</span>
                       <!-- {else} -->
                       <span class="tag bg-red">禁止下载</span>
                       <!-- {/if} -->
                    </td>
                    <td>
                        <a class="button bg-blue button-small icon-pencil" href="{url('edit',array('uid'=>$vo['uid']))}" title="禁用"></a>
                        <!-- if{$vo['status']} -->
                        <a class="button bg-blue button-small icon-lock" href="{url('audit',array('uid'=>$vo['uid'],'status'=>0))}" title="禁用"></a>
                        <!-- {else} -->
                        <a class="button bg-blue button-small icon-unlock" href="{url('audit',array('uid'=>$vo['uid'],'status'=>1))}" title="启用"></a>
                        <!-- {/if} -->
                        <a class="button bg-red button-small icon-trash-o js-del" href="javascript:;" data="{$vo.uid}" title="删除"></a>
                    </td>
                </tr>
                <!-- {/loop} -->
            </tbody>
        </table>
    </div>
    <div class="panel-foot table-foot clearfix">{$page}</div>
</div>
<script>
Do.ready('base',function() {
	$('#table').duxTable({
		deleteUrl: "{url('del')}"
	});
});
</script>